Don't refuse to clean up after a domain death when the buffer is not empty. If
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 30 Nov 2005 18:48:27 +0000 (18:48 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 30 Nov 2005 18:48:27 +0000 (18:48 +0000)
commitf0309906f0c55ef408e039d60955fc5dd14eca3b
treeb61c7cdb9ed823d77843621791b3df85b7a595c7
parentfa45226f847cf8860e6989d9208cb6cc8ecf510c
Don't refuse to clean up after a domain death when the buffer is not empty.  If
the domain has gone away, then no-one can attach to the pty because Xend will
have cleaned up the entries in the store, so the pty will never become ready to
write.  The buffer will never get emptied, so cleanup will never occur. This
leaks ptys, file descriptors, and memory.  Simply throw those data away instead.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/console/daemon/io.c